package com.google.code.expr.runtime;

import java.io.IOException;

import com.google.code.expr.lang.EXPRAtom;

@SuppressWarnings("serial")
public class EXPRRunTimeException extends IOException {

	public EXPRRunTimeException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}

	public EXPRRunTimeException(String arg0) {
		this(arg0,null);
	}

	public EXPRRunTimeException(EXPRAtom pAtom, String pMessage, Throwable pCause) {
		this(pMessage +" [line "+pAtom.getLineNumber()+", column"+pAtom.getColumn()+"]",pCause);
	}

	public EXPRRunTimeException(EXPRAtom pAtom, String pMessage) {
		this(pAtom,pMessage,null);
	}
}
